<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
*/

$app->get('/', function(){
	echo "welcome to ptime3mail app.";
	
	// echo date("Y-m-d H:i:s");
});
$app->get 	('/mail/black', 		  'MailBlackController@index');
$app->post 	('/mail/black', 		  'MailBlackController@store');
$app->delete('/mail/black', 		  'MailBlackController@destroy');

$app->get 	('/mail/new', 		  	  'MailController@isNew');

$app->get 	('/mail/set', 		  	  'MailController@setIndex');
$app->delete('/mail/set', 		  	  'MailController@setDestroy');
$app->get 	('/mail', 		  		  'MailController@index');
$app->post 	('/mail', 		  		  'MailController@store');
$app->delete('/mail/{id}', 		  	  'MailController@destroy');
